home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2682 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: gryphon.phoenix.net!usenet
  2. From: brucew@phoenix.net (Bruce Wedding)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Clearing the keyboard buffer
  5. Date: Tue, 23 Jan 1996 03:18:56 GMT
  6. Organization: BranPaul Systems
  7. Message-ID: <4e1hpr$s1b@gryphon.phoenix.net>
  8. References: <4dtqi4$60u@cdc2.cdc.net> <4e18m5$on1@gryphon.phoenix.net>
  9. NNTP-Posting-Host: dial135.phoenix.net
  10. X-Newsreader: Moe's Newsreader    
  11.  
  12. brucew@phoenix.net (Bruce Wedding) wrote:
  13.  
  14.  
  15. >I'll probably be flamed for mentioning this, but I'm going to anyway.
  16. >This is not STANDARD, in fact according to the ANSI Standard, it
  17. >results in undefined behavior.  That ought to satisfy the pedants.
  18.  
  19. >fflush(stdin); /* will flush the keyboard in Turbo C */
  20.  
  21. Just a note to say that I didn't realize this guy crossposted 
  22. all over creation.  I was answering in an ms dos group.  No
  23. flames necessary.
  24.  
  25.  
  26. Bruce D. Wedding                        Have Compiler, Will Travel!
  27.               Perspicacious Programming Performed Promptly
  28. Katy, Texas, USA, Planet Earth, Milkyway Galaxy, Known Universe
  29.  
  30.